package com.ccsu.joysport.repository;



import com.ccsu.joysport.entity.student;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


public interface StuInfoRepository extends JpaRepository<student, String> {

    @Query("SELECT r FROM student r WHERE r.studentNumber = :studentNumber")
    student findByStudentNumber(@Param("studentNumber") String studentNumber);
}